#include "InputManager.h"
#include "SFMLInputManager.h"

InputManager* InputManager::m_instance = nullptr;

InputManager& InputManager::getSingleton()
{
	if (m_instance == nullptr)
	{
		#ifdef _WIN32
		m_instance = new SFMLInputManager;
		#endif
	}
	return *m_instance;
}

void InputManager::clean()
{
	if (m_instance != nullptr)
	{
		delete m_instance;
		m_instance = nullptr;
	}
}